import {I18Parse,CommonLang} from "@lowcode/jpaas-common-lib";
import InsColumnDefMobileLang from '@/locales/lang/impl/portal/isolateJs/InsColumnDefMobileLang';
let lang = InsColumnDefMobileLang.InsColumnDefMobile;
let i18n=function (langKey,text) {
    return I18Parse.getI18Val(lang,langKey, text)
}

var tabcolumn = {
    type:"tab",
    title:i18n('tabColumnTitle','tab栏目'),
    titleflg:true,
    tabs:[
        {
            title:"",
            icon: "",
            stylize:'iconfont',
            permissions:"",
            items: [
                {
                    type: "",
                    icon: "icon-like_fill",
                    title: "",
                    key: "",
                    bgColor: "linear-gradient(0deg,#2b76f3 0%,#6db6fb 100%)",
                    system:'lineage',
                    iconfontcolor:'#fafafa',
                    url: "",
                    alias: "",
                    id: "",
                    imgId:'',
                    defId:"",
                    customModule:'',
                    permissions:'',//权限
                }
            ]
        }

    ]
}
var gridEntry = {

    type: "grid",
    titleflg:true,
    title: "",
    stylize:'iconfont',
    items: [
        {
            type: "",
            icon: "icon-like_fill",
            title: "",
            key: "",
            system:'lineage',
            bgColor: "linear-gradient(0deg,#2b76f3 0%,#6db6fb 100%)",
            iconfontcolor:'#fafafa',
            url: "",
            alias: "",
            id: "",
            imgId:'',
            permissions:'',//权限
        }
    ]

}

var noticeEntry = {
    type: "notice",
    title: "",
    noticeNum: 3
}

var wheelEntry = {
    type: "wheel",
    title: "",
    titleflg:true,
    items: [
        {
            fileId: "",
            newsId: "",
            subject: "",
            skip:"no",
            url:'',
            alias:'img',
            permissions:'',//权限
        }
    ]
}

var processEntry = {
    type: "process",
    title: i18n('process','流程管理'),
    titleflg:true,
    stylize:'iconfont',
    items: [
        {
            title: i18n('myTasks','我的待办'),
            routeName: "myTasks",
            icon: "icon-clock",
            system:'lineage',
            bgColor: "rgba(108, 108, 234, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的待办",
                "en-US": "MyTaskList",
                "ja-JP": "私のタスクリスト",
                "es-ES": "Mi lista de tareas"
            },
        },
        {
            title: i18n('newProcess','新建流程'),
            routeName: "mySolutions",
            icon: "icon-jiaqian",
            system:'lineage',
            bgColor: "rgba(61, 203, 182, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "新建流程",
                "en-US": "NewProcess",
                "ja-JP": "新しいプロセス",
                "es-ES": "Nuevo proceso"
            },
        },
        {
            title: i18n('news','我的消息'),
            routeName: "news",
            icon: "icon-Vue3_notice",
            system:'lineage',
            bgColor: "rgba(245, 151, 84, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的消息",
                "en-US": "MyMessage",
                "ja-JP": "私のメッセージ",
                "es-ES": "Mis mensajes"
            },
        },
        {
            title: i18n('myProcess','我的申请'),
            routeName: "myInst",
            icon: "icon-Vue3jpaas-icon_shenpilishi",
            system:'lineage',
            bgColor: "rgba(228, 129, 143, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的申请",
                "en-US": "MyStartedItems",
                "ja-JP": "私の申請",
                "es-ES": "Mis solicitudes"
            },
        },
        {
            title: i18n('myApprove','我的已办'),
            routeName: "HasHandle",
            icon: "icon-Vue3_task",
            system:'lineage',
            bgColor: "rgba(238, 192, 99, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的已办",
                "en-US": "MyHandledItems",
                "ja-JP": "私の処理済みアイテム",
                "es-ES": "Mis elementos manejados"
            },
        },
        {
            title: i18n('myTransfer','收到的转办'),
            routeName: "ReceiveTask",
            icon: "icon-Vue3jpaas-icon_huifu",
            system:'lineage',
            bgColor: "rgba(245, 151, 84, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "收到的转办",
                "en-US": "ReceivedTransmiteds",
                "ja-JP": "受け取った転送",
                "es-ES": "Tareas recibidas"
            },
        },
        {
            title: i18n('transOutTask','我的转办'),
            routeName: "TransOutTask",
            icon: "icon-Vue3jpaas-icon_huifuzhuanfa",
            system:'lineage',
            bgColor: "rgba(238, 192, 99, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的转办",
                "en-US": "MyTransmiteds",
                "ja-JP": "私の転送",
                "es-ES": "Mis tareas transferidas"
            },
        },
        {
            title:i18n('myTransmit','我的转发'),
            routeName:"MyTransmit",
            icon:"icon-Vue3_publish",
            system:'lineage',
            bgColor:"rgba(207, 122, 222, 1)",
            module:"bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的转发",
                "en-US": "MyForwarding",
                "ja-JP": "私の転送",
                "es-ES": "Mis reenvíos"
            },
        },
        {
            title:i18n('myReceiveTurn','收到的转发'),
            routeName:"ReceiveTransmit",
            icon: "icon-Vue3_smallscreen",
            system:'lineage',
            bgColor: "rgba(207, 122, 222, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我收到的转发",
                "en-US": "ReceivedForwarding",
                "ja-JP": "受け取った転送",
                "es-ES": "Reenvíos recibidos"
            },
        },
        {
            title:i18n('myTracked','我的跟踪'),
            routeName:"MyTracked",
            icon: "icon-icon-genzong",
            system:'lineage',
            bgColor: "rgba(232, 145, 23, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的跟踪",
                "en-US": "MyTracks",
                "ja-JP": "私のトラッキング",
                "es-ES": "Mis seguimientos"
            },
        },{
            title:i18n('myPending','我的挂起'),
            routeName:"myPending",
            icon: "icon-guaqi",
            system:'lineage',
            bgColor: "rgba(61, 203, 182, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的挂起",
                "en-US": "MyPendings",
                "ja-JP": "私の保留",
                "es-ES": "Mis pendientes"
            },
        },{
            title:i18n('myAsynchronous','我的异步'),
            routeName:"asynchronous",
            icon: "icon-zhuanban",
            system:'lineage',
            bgColor: "rgba(245, 151, 84, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的异步",
                "en-US": "AsyncTasks",
                "ja-JP": "私の非同期タスク",
                "es-ES": "Mis tareas asíncronas"
            }
        },
    ]

}
let largeScreen = {
    type: "largeScreen",
    title: i18n('BiScreen','大屏管理'),
    titleflg:true,
    stylize:'iconfont',
    items: [
        {
            title:i18n('collection','我的收藏'),
            routeName:"myCollection",
            icon: "icon-star-collection",
            system:'lineage',
            bgColor: "rgba(66, 135, 245, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的收藏",
                "en-US": "MyCollect",
                "ja-JP": "私のコレクション",
                "es-ES": "Mi colección"
            },
        },
        {
            title:i18n('share','我的分享'),
            routeName:"myShare",
            icon: "icon-Vue3_share",
            system:'lineage',
            bgColor: "rgba(61, 203, 182, 1)",
            module: "bpm",
            imgId:'',
            permissions:'',//权限
            i18nJson:{
                "zh-CN": "我的分享",
                "en-US": "MyShare",
                "ja-JP": "私のシェア",
                "es-ES": "Mi compartir"
            }
        }
        ]
}

export default {
    gridEntry,
    noticeEntry,
    wheelEntry,
    processEntry,
    tabcolumn,
    largeScreen
}